﻿<%@ Page Language="C#" AutoEventWireup="True" Inherits="PlugNT.Cms.Web.Admin.Pre_Article.Admin" ValidateRequest="false" Codebehind="Admin.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<script language=javascript type="text/javascript" src="./js/article.js"></script>
</head>
<body>
<div class="frmstatic" style="display:block">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="controls">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align"left">
                <table>
                    <tr>
                        <td><img src="../images/maintenance_32x32.gif" width="16" height="16" /></td>
                        <td><label>核心 > 内容管理 </label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <span>操作 > </span>
                <a href='./Add.aspx<%=(currpostfix!=""?"?currpostfix="+currpostfix:"") %>'>添加内容</a>          
                <a href='javascript:window.history.back();'>返回</a>   
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>

<div class="frmstatic" style="display:block">
 <table width="100%" border="0" cellpadding="10" cellspacing="0">
   <tr valign="top">
    <td valign="top">
    
    <form id="form1" runat="server">
    
    <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#DDE9FF">
     <tr>
        <td bgcolor="#ecf5ff">
            <table  width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                  <td align="left" style="width:20px;">
                    <img src="../images/cms-ico2.gif" width="16" height="16" align="absmiddle">
                  </td>
                  <td align="left" style="width:auto; display:<%=(!PlugNT.Custom.WebConfig.IsAccess)?"block":"none" %>;">
                      分表：
                      <asp:DropDownList ID="ddlTables" runat="server"></asp:DropDownList>                  
                  </td>
                  <td align="left">
                      筛选：
                      <asp:DropDownList ID="ddlMenu" runat="server" ></asp:DropDownList>
                  </td>
                  <td align="right">
                    <table border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td><img src="../images/cms-ico7.gif" width="12" height="11" align="absmiddle"> 标题或编号： </td>
                        <td><input id="keywords" type="text" class="input" style="width:110px; height:15px" value="<% =keyword %>"></td>
                        <td width="60px" align="center" title="精确查询性能会更好速度会更快">
                          <label for="isexact" style="cursor:hand;"><input type="checkbox" id="isexact" name="isexact" <% =isexact=="1"?"checked=checked":"" %>  />精确</label>
                        </td>

                        <td align="right" valign="middle" width="50"> 
                          <input id="iptsearch" type="button" value=" 搜索 " class="bt" onclick="SubmitUrl();" />
                          <!-- 高级↓ //-->
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
            </table>
        </td>
     </tr>
    </table>
    
    <br />
    
     <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#d2e6fa">
       <tr valign="top">
        <td valign="top">
          
          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
            
            <tr>
              <td width="23" height="25" nowrap bgcolor="#DDE9FF"></td>                
              <td width="28" nowrap bgcolor="#DDE9FF"><span class="line">编号</span></td>
              <td align="center" bgcolor="#DDE9FF"><span class="line">标题</span></td>
              <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">作者</span></td>
              <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">录入日期</span></td>
              <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">生成文件路径</span></td>
              <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">文件别名</span></td>
              <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">发布</span></td>  
              <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">生成</span></td>    
              <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">置顶</span></td>    
              <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">推荐</span></td>            
              <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">操作</span></td>
            </tr>
            
            
             <asp:Repeater ID="Repeater_admin" runat="server" OnItemDataBound="Repeater_admin_ItemDataBound">
              <ItemTemplate>
                <tr align="center" onmouseover="SwapColor(this,true);" onmouseout="SwapColor(this,false);" style="background-color:#F4FBFF;"> 
                  <td height="25" nowrap>
                    <asp:CheckBox ID="ID_list" runat="server" />
                    <asp:HiddenField ID="hidClsno" runat="server" Value='<%#Eval("clsno") %>' />
                    <asp:HiddenField ID="hidCreatepath" runat="server" Value='<%#Eval("createpath") %>' />
                    <asp:HiddenField ID="hidPagename" runat="server" Value='<%#Eval("pagename") %>' />
                  </td>
                  <td nowrap>
                    <asp:Label ID="Label_id" runat="server" Text='<%#Eval("id") %>'></asp:Label>
                  </td>
                  <td nowrap title='<%#Eval("title") %>'><%#Eval("title")%></td>
                  <td nowrap title='<%#Eval("author") %>'><%#Eval("author")%></td>
                  <td nowrap title='<%#Eval("addtime") %>'><%#Eval("addtime")%></td>
                  <td align="center" nowrap>
                    <a href="<%#Eval("createpath").ToString() %><%#Eval("pagename") %>.shtml" target="_blank">
                     <%#Eval("createpath").ToString()%><%#Eval("pagename").ToString()%>.shtml
                    </a>
                  </td>
                  <td nowrap title='<%#Eval("pagename") %>'><%#Eval("pagename")%></td>
                  <td align="center" nowrap>
                   <font title="<%#Eval("switchs").ToString().ToLower()=="true"?"已发布":"未发布"%>"><%#Eval("publish").ToString().ToLower() == "true" ? "√" : "X"%></font> 
                  </td>
                  <td align="center" nowrap>
                    <asp:Literal ID="litHasFile" runat="server"></asp:Literal>
                  </td>    
                  <td align="center" nowrap>
                   <a href="?t=stick&id=<%#Eval("id") %>&stick=<%#((bool)Eval("stick"))?"1":"0" %>&currpostfix=<%#currpostfix%>">
                    <b><%#((bool)Eval("stick")) ? "<font color='#FF3300' title='点击取消置顶'><img src='../images/cms-ico7.gif' border='0' /></font>" : "<font color='#FF3300' title='点击置顶'><img src='../images/cms-ico6.gif' border='0' /></font>"%></b>
                   </a> 
                  </td>
                  <td align="center" nowrap>
                   <a href="?t=commend&id=<%#Eval("id") %>&commend=<%#((bool)Eval("commend"))?"1":"0" %>&currpostfix=<%#currpostfix%>">
                    <b><%#((bool)Eval("commend")) ? "<font color='#FF3300' title='点击取消推荐'><img src='../images/cms-ico7.gif' border='0' /></font>" : "<font color='#FF3300' title='点击推荐'><img src='../images/cms-ico6.gif' border='0' /></font>"%></b>
                   </a> 
                  </td>
                  <td align="center" nowrap> 
                   <a href="Edit.aspx?id=<%#Eval("id") %>&currpostfix=<%#currpostfix%>">编辑</a> | 
                   <a href="?t=delete&id=<%#Eval("id") %>&currpostfix=<%#currpostfix%>" onclick="return window.confirm('确定删除编号 [<%#Eval("id") %>] 的数据吗?')">删除</a>
                  </td>
                </tr>
              </ItemTemplate>
            </asp:Repeater>
            <tr>
              <td height="25" colspan="12" bgcolor="#F4FBFF">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <input name="chkAll" type="checkbox" id="chkAll" onClick="CheckAll(form)" value="checkbox" style="position:absolute;clip: rect(6 15 15 6)">
                            <img for="chkAll" src="../images/cms-ico12.gif" border="0">
                            <asp:ImageButton ID="ImageButton_all_del" runat="server" ImageUrl="../images/cms-ico10.gif" onclick="ImageButton_all_del_Click" OnClientClick="return window.confirm('确定删除这些内容吗?');" style="width: 63px" />      
                            <asp:ImageButton ID="ImageButton_ding" runat="server" ImageUrl="../images/cms-ding.gif" onclick="ImageButton_ding_Click" style="width: 63px" />      
                            <asp:ImageButton ID="ImageButton_tj" runat="server" ImageUrl="../images/cms-tj.gif"  onclick="ImageButton_tj_Click" style="width: 63px" />                          
                            <asp:ImageButton ID="ImageButton_K" runat="server" ImageUrl="../images/cms-K.gif" onclick="ImageButton_K_Click" style="width: 63px" />                 
                        </td>
                        <td>
                            <asp:Literal ID="litPager" runat="server"></asp:Literal>
                        </td>
                    </tr>
                </table>
              </td>
            </tr>
          </table>
          
        </td>
      </tr>
     </table>
    </form>

    </td>
  </tr>
 </table>
</div>
</body>
</html>
